package com.jkd.mapper;

import com.jkd.model.pojo.Student;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface StudentMapper {
    @Select("select * from student where stu_num = #{stuNum}")
    Student  selectByStuNum(String stuNum);

    @Update("update student set discipline_id=#{disciplineId},grade=#{grade},name=#{name},sex=#{sex},cel=#{cel},location=#{location} where stu_id = #{stuId}")
   int update(Student student);
}
